package sjms.construction.flyweight;

/**
 * @ClassName:
 * @Description:
 * @Author fcb
 * @Date 2020/6/3 23:01
 */
public class Circle implements Shape {

    // 维护外部状态
    private int x ,y, radius;

    private String color;

    public Circle(String color){
        this.color = color;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public int getRadius() {
        return radius;
    }

    public void setRadius(int radius) {
        this.radius = radius;
    }

    @Override
    public void draw() {
        System.out.println(color+ " Circle");
    }
}
